import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";

// https://vitejs.dev/config/
export default ({ command, mode }) => {
	console.log("command", command);
	console.log("mode", mode);
	return {
		resolve: {
			alias: {
				"@": path.resolve(__dirname, "src"),
				"apis": path.resolve(__dirname, "src/apis"),
				"models": path.resolve(__dirname, "src/model"),
				"utils": path.resolve(__dirname, "src/utils"),
				"comps": path.resolve(__dirname, "src/components"),
				"router": path.resolve(__dirname, "src/router"),
				"views": path.resolve(__dirname, "src/views"),
				"layout": path.resolve(__dirname, "src/layout"),
			},
		},
		plugins: [vue()],
	};
};
